/**
 */
package com.dingpeikeji.quickdeer.core.modules.returnrule.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;

/**
 * 退票规则定义Entity
 * @author lh
 * @version 2016-07-08
 */
public class TReturnruleDtl extends DataEntity<TReturnruleDtl> {
	
	private static final long serialVersionUID = 1L;
	private Integer rtndtlid;		// 主键
	private TReturnrule returnid;		// 退票规则id 父类
	private Integer rtnorder;		// 规则序号
	private String rtnpoint;		// 退票时间点
	private Integer rtnfrom;		// 退票时间起点
	private Integer rtnto;		// 退票时间终点
	private String rtntimetype;		// 退票时间单位
	private Double rtnamount;		// 退票金额
	private String rtnamttype;		// 退票金额类型
	
	public TReturnruleDtl() {
		super();
	}

	public TReturnruleDtl(String id){
		super(id);
	}

	public TReturnruleDtl(TReturnrule returnid){
		this.returnid = returnid;
	}

	@NotNull(message="主键不能为空")
	public Integer getRtndtlid() {
		return rtndtlid;
	}

	public void setRtndtlid(Integer rtndtlid) {
		this.rtndtlid = rtndtlid;
	}
	
	@NotNull(message="退票规则id不能为空")
	public TReturnrule getReturnid() {
		return returnid;
	}

	public void setReturnid(TReturnrule returnid) {
		this.returnid = returnid;
	}
	
	@NotNull(message="规则序号不能为空")
	public Integer getRtnorder() {
		return rtnorder;
	}

	public void setRtnorder(Integer rtnorder) {
		this.rtnorder = rtnorder;
	}
	
	@Length(min=1, max=1, message="退票时间点长度必须介于 1 和 1 之间")
	public String getRtnpoint() {
		return rtnpoint;
	}

	public void setRtnpoint(String rtnpoint) {
		this.rtnpoint = rtnpoint;
	}
	
	@NotNull(message="退票时间起点不能为空")
	public Integer getRtnfrom() {
		return rtnfrom;
	}

	public void setRtnfrom(Integer rtnfrom) {
		this.rtnfrom = rtnfrom;
	}
	
	@NotNull(message="退票时间终点不能为空")
	public Integer getRtnto() {
		return rtnto;
	}

	public void setRtnto(Integer rtnto) {
		this.rtnto = rtnto;
	}
	
	@Length(min=1, max=1, message="退票时间单位长度必须介于 1 和 1 之间")
	public String getRtntimetype() {
		return rtntimetype;
	}

	public void setRtntimetype(String rtntimetype) {
		this.rtntimetype = rtntimetype;
	}
	
	@NotNull(message="退票金额不能为空")
	public Double getRtnamount() {
		return rtnamount;
	}

	public void setRtnamount(Double rtnamount) {
		this.rtnamount = rtnamount;
	}
	
	@Length(min=1, max=1, message="退票金额类型长度必须介于 1 和 1 之间")
	public String getRtnamttype() {
		return rtnamttype;
	}

	public void setRtnamttype(String rtnamttype) {
		this.rtnamttype = rtnamttype;
	}
	
}
